const connect = require('connect');
const logger = require('./setup');

const app = connect();
app.use(logger(':method :url'));
app.use(hello);
app.listen(3000);

function hello(req, res) {
  res.setHeader('Content-Type', 'text/plain');
  res.end('hello world');
}
